﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MaterialPrint
{
    public partial class DateRange : Form
    {
        public DateRange()
        {
            InitializeComponent();
        }

        private void DateRange_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                Close();
            }
        }

        public DateTime DateFrom { get { return dateTimePicker1.Value; } set { dateTimePicker1.Value = value; } }
        public DateTime DateTo { get { return dateTimePicker2.Value; } set { dateTimePicker2.Value = value; } }
    }
}
